(defun lutts-init-editor nil
  (require 'bracketed-paste)
  (bracketed-paste-enable)
  (eyebrowse-mode t)
  (window-numbering-mode t)
  (centaur-tabs-mode t)
  (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
  (setq ring-bell-function 'ignore ; Let emacs close its mouth
        python-shell-interpreter "python3") ; Set default python version
  ;; About delete
  (delete-selection-mode t)
  ;; Show paren
  (add-hook 'prog-mode-hook 'show-paren-mode)
  ;; Change answer to normal question
  (fset 'yes-or-no-p 'y-or-n-p)

  ;; Show file size
  (size-indication-mode t)

  (recentf-mode t)

  (centaur-tabs-group-by-projectile-project)

  ;; Disable tab
  (setq-default indent-tabs-mode nil)

  ;; (semantic-mode t)

  ;; File auto revert
  (global-auto-revert-mode t)

  (add-hook 'evil-leader-mode-hook
            '(lambda ()
               (evil-leader/set-key
                 "wc" 'eyebrowse-create-window-config
                 "wd" 'eyebrowse-close-window-config
                 "wn" 'eyebrowse-next-window-config
                 "wp" 'eyebrowse-prev-window-config
                 ";" 'comment-line
                 "cc" 'calc
                 "al" 'avy-goto-line))))

(lutts-load-package 'lutts-init-editor 'bracketed-paste 'eyebrowse 'window-numbering 'centaur-tabs 'rainbow-delimiters 'org 'pyim 'avy)

(provide 'init-editor)
